<%@ Import Namespace="MvcContrib.FluentHtml"%>
<%@ Control Language="C#" AutoEventWireup="true" Inherits="System.Web.Mvc.ViewUserControl<CandidateResumesController.CandidateResumeFormViewModel>" %>
<%@ Import Namespace="ETestIT.Core" %>
<%@ Import Namespace="ETestIT.Web.Controllers" %>
 

<% if (ViewContext.TempData[ControllerEnums.GlobalViewDataProperty.PageMessage.ToString()] != null) { %>
    <p id="pageMessage"><%= ViewContext.TempData[ControllerEnums.GlobalViewDataProperty.PageMessage.ToString()]%></p>
<% } %>



    <%= Html.AntiForgeryToken() %>
    <%= Html.Hidden("CandidateResume.Id", (ViewData.Model.CandidateResume != null) ? ViewData.Model.CandidateResume.Id : 0)%>

			<label for="Resume_File">File:</label>
				<%= this.FileUpload("CandidateResume.TheResume")%>
			
			<label for="CandidateResume_TheJobTitle">TheJobTitle:</label>
				<%= this.Select("CandidateResume.TheJobTitle").Attr("size", 1).Options(ViewData.Model.JobTitles, c => c.Id, c => c.Name)
                    .Selected((ViewData.Model.CandidateResume != null) ? ViewData.Model.CandidateResume.TheJobTitle.Id : 0)%>

            <%= Html.SubmitButton("btnSave", "Save") %>
	        <%= Html.Button("btnCancel", "Cancel", HtmlButtonType.Button, "history.back()")%>
